package cn.eleven.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
import java.util.List;

@Data
@TableName("forum_post")
public class ForumPost {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String title;
    private String content;
    private String topic;
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(exist = false)
    private List<User> users;
}